import request from '@/utils/request'

// 查询租房收藏列表
export function listHousecollect(query) {
  return request({
    url: '/member/housecollect/list',
    method: 'get',
    params: query
  })
}

// 查询租房收藏详细
export function getHousecollect(id) {
  return request({
    url: '/member/housecollect/' + id,
    method: 'get'
  })
}

// 新增租房收藏
export function addHousecollect(data) {
  return request({
    url: '/member/housecollect',
    method: 'post',
    data: data
  })
}

// 修改租房收藏
export function updateHousecollect(data) {
  return request({
    url: '/member/housecollect',
    method: 'put',
    data: data
  })
}

// 删除租房收藏
export function delHousecollect(id) {
  return request({
    url: '/member/housecollect/' + id,
    method: 'delete'
  })
}

// 导出租房收藏
export function exportHousecollect(query) {
  return request({
    url: '/member/housecollect/export',
    method: 'get',
    params: query
  })
}